package com.neuedu.boot.service;

import com.neuedu.boot.dao.UserDao;
import org.springframework.stereotype.Service;

//@Service  //在类的声明上添加注解相当于是在ioc容器中声明了一个Bean对象
public class UserService {





    public void sayHi(){
        System.out.println("UserService.sayHi");

    }

}



//   <bean id="userService" class="com.neuedu.boot.service.UserService"